## Who's Cheating on Your Survey? A Detection Approach with Digital Trace Data

### Reproduction materials (README) 

These are the reproduction materials for the study: Who's Cheating on Your Survey? A Detection Approach with Digital Trace Data by Simon Munzert, Sebastian Ramirez-Ruiz, Pablo Barberá, Andrew M. Guess, and JungHwan Yang.

In the folder you will find the following files:

1) `supplemental-appendix.pdf`: The online supplemental appendix for the study.

2) `reproduction-materials.Rproj`: The RStudio R project file as a self-contained working directory.

Additionally, you will find three folders:

1) `/code`: Contains the R code to reproduce the figures and tables of the study.
	a) `packages.R`: R script helper to load and install all packages necessary for reproduction.
	b) `func_model_permute.R`: R helper file containing functions for model permutations.
	c) `01-main-text.R`: R script to render figures of the main text.
	d) `02-appendix.R`: R script to render figures and tables of the supplemental appendix.


2) `/data`: Contains data frames in .RData format to reproduce the figures and tables of the study.
	a) `analysis/response_stan_cheating_model.RData`: Output from `rstanarm::stan_glmer()` model for main text Figure 2
	b) `domains_user_df.RData`: Data frame of top 25 domains for USA and GER
	c) `ger_dat_response.RData`: Data frame at item level
	d) `ger_question.RData`: Data frame at question level
	e) `ger_respondent.RData`: Data frame at respondent level
	d) `ger_time_model.RData`: Data frame at item level with timing
	e) `subjects_long_df.RData`: Data frame at respondent level including non-tracking subjects

3) `/figures`: Folder holding figures and tables.

The code assumes that the working directory is the folder where the Rproj file rests. All figures and tables will be rendered in the figures folder. To ensure reproducibility, open the reproduction-materials.Rproj file and run the code from that environment.
